import React from 'react';
// import {Switch} from 'antd';
import App from './App';

export const ColorSwitch = () =>{
  // const [isDark, setIsDark] = useState(false);
  // useEffect(()=>{
  //   if (isDark) {
  //     document.body.className='globalDark';
  //   } else {
  //     document.body.className='globalLight';
  //   }
  // }, [isDark]);
  return (
    <div>
      {/* <Switch*/}
      {/*  checkedChildren={'🌙'}*/}
      {/*  unCheckedChildren={'☀️'}*/}
      {/*  style={{*/}
      {/*    position: 'absolute',*/}
      {/*    top: 20,*/}
      {/*    right: 20,*/}
      {/*    backgroundColor: 'rgb(255 255 255 / 30%)',*/}
      {/*  }}*/}
      {/*  onChange={(d)=>{*/}
      {/*    console.log(d);*/}
      {/*    setIsDark(d);*/}
      {/*  }} checked={isDark}/>*/}
      <App/>
    </div>
  );
};
